from wikicamp.worklist.models import *
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User


class kullanicilarInline(admin.TabularInline):
    model = kullanicilar
    fk_name = 'user'
    max_num = 1
   
class kullanicilarAdmin(UserAdmin):
    inlines = [kullanicilarInline,]
   
   
admin.site.unregister(User)
admin.site.register(User, kullanicilarAdmin)


class islistesiAdmin(admin.ModelAdmin):
    date_hierarchy = 'timestamp'

admin.site.register(kullanicigrup)
admin.site.register(atolyeler)
admin.site.register(yetki)
admin.site.register(isturu)
admin.site.register(carikart)
admin.site.register(cihazlar)
admin.site.register(gecerlilik_durumlar)
admin.site.register(lokasyonlar)
admin.site.register(is_durumlar)
admin.site.register(islistesi,islistesiAdmin)
admin.site.register(sabittablolar)
admin.site.register(birim)
admin.site.register(bakimtablosu)
admin.site.register(bakimtaslagi)
admin.site.register(bakimkaydi)
admin.site.register(Document)